package com.frame.mapper;

import com.frame.domain.Leaves;
import com.frame.domain.SysDictData;
import com.frame.domain.SysUser;
import com.frame.domain.SysUserLeaves;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LeavesMapper {

    boolean save(Leaves leaves);

    Leaves selectById(String id);

    boolean updateLeaves(Leaves leaves);

    List<SysUser> getBanzhang();

    List<SysUser> getDaoyuan();

    List<SysUser> getJiangshi();

    List<SysDictData> getLeaveType();

    void insertUserLeave(SysUserLeaves userLeave);

    List<SysUserLeaves> myCompletion(Integer userId);
}
